package com.kingboy.cloud.jwt;
/**
 * @author kingboy
 * @create 2020-08-04 17:37
 */

import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;

/**
 *@Description 认证服务端配置
 *@auther 郭金宝
 *@create 2020-08-04 17:37
 */
@EnableConfigurationProperties(value = {
        JwtProperties.class,
})
public class JwtConfiguration {

    @Bean
    public TokenUtil getTokenUtil(JwtProperties authServerProperties) {
        return new TokenUtil(authServerProperties);
    }
}
